<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function cargar_datos()
{
    
}

?>
function cargar_datos(url_fuente,id_cambio,parametros) {
        var url = url_fuente
        var params = parametros;
        
        new Ajax.Request(url, {
        method: 'post',
        parameters: params,
        asynchronous: true,
        onSuccess: function(transport) {

        if(transport.responseText.length > 0){
                document.getElementById(id_cambio).innerHTML=transport.responseText;
        }}});
}